package com.malty.mall.domain.entity.pms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.malty.mall.domain.dto.req.pms.PmsAttributeCategoryParam;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * @author malty
 */
@Data
@NoArgsConstructor
@TableName("pms_product_attribute_category")
public class PmsProductAttributeCategory {
    private Long id;
    private String name;
    private Long attributeCount;
    private Long paramCount;
    private Date createTime;
    private Date updateTime;

    public PmsProductAttributeCategory(PmsAttributeCategoryParam cateParam) {
        if (cateParam != null) {
            BeanUtils.copyProperties(cateParam, this);
        }
    }
}
